package com.ruoyi.material.domain;

import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 目录管理对象 base_material
 * 
 * @author cyw
 * @date 2021-07-15
 */

@Data
@Accessors(chain = true)
public class BaseMaterial extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 父编码 */
    @Excel(name = "父编码")
    private String pCode;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 文件编码 */
    @Excel(name = "文件编码")
    private Long fileCode;

    /** 标记文件编码 */
    @Excel(name = "标记文件编码")
    private Long tabCode;

    /** 删除标记，0代表未删除，1代表已删除 */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setpCode(String pCode) 
    {
        this.pCode = pCode;
    }

    public String getpCode() 
    {
        return pCode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setFileCode(Long fileCode) 
    {
        this.fileCode = fileCode;
    }

    public Long getFileCode() 
    {
        return fileCode;
    }
    public void setTabCode(Long tabCode) 
    {
        this.tabCode = tabCode;
    }

    public Long getTabCode() 
    {
        return tabCode;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("pCode", getpCode())
            .append("name", getName())
            .append("type", getType())
            .append("fileCode", getFileCode())
            .append("tabCode", getTabCode())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
